<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/language/Implication.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d3/d1a/Implication_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Implication.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d3/d1a/Implication_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Implication.java</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">package </span>nars.language;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">import</span> java.util.*;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../db/d64/namespacenars_1_1io.html">io</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../da/db6/classnars_1_1language_1_1Implication.html">   31</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../da/db6/classnars_1_1language_1_1Implication.html">Implication</a> <span class="keyword">extends</span> <a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement.html">Statement</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../da/db6/classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709.html#ab92b733902106af6deccfbbf06e63709">   37</a></span>&#160;    <span class="keyword">protected</span> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709.html#ab92b733902106af6deccfbbf06e63709">Implication</a>(ArrayList&lt;Term&gt; arg) {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        super(arg);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    }</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../da/db6/classnars_1_1language_1_1Implication_abdfe3e056a5b1c4ddbab550d3d80d4b4.html#abdfe3e056a5b1c4ddbab550d3d80d4b4">   48</a></span>&#160;    <span class="keyword">protected</span> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_abdfe3e056a5b1c4ddbab550d3d80d4b4.html#abdfe3e056a5b1c4ddbab550d3d80d4b4">Implication</a>(String n, ArrayList&lt;Term&gt; cs, <span class="keywordtype">boolean</span> con, <span class="keywordtype">short</span> i) {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        super(n, cs, con, i);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../da/db6/classnars_1_1language_1_1Implication_a2d8bb553b90caaeb73a797087e52cb17.html#a2d8bb553b90caaeb73a797087e52cb17">   56</a></span>&#160;    <span class="keyword">public</span> Object <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_a2d8bb553b90caaeb73a797087e52cb17.html#a2d8bb553b90caaeb73a797087e52cb17">clone</a>() {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709.html#ab92b733902106af6deccfbbf06e63709">Implication</a>(<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b.html#a059f44677d4580c0eef198dfba957b6b">name</a>, (ArrayList&lt;Term&gt;) <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a4f199daa7588f86b81b0912a5e52dfe0.html#a4f199daa7588f86b81b0912a5e52dfe0">cloneList</a>(<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb.html#ad340d3bb55dcfcdf237fe4ee225d3cbb">components</a>), <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_aee0ef6fd533b58caf22bee2a98eef67d.html#aee0ef6fd533b58caf22bee2a98eef67d">isConstant</a>(), <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5e337444f74e870264191c7fbc13cd6d.html#a5e337444f74e870264191c7fbc13cd6d">complexity</a>);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">   67</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication.html">Implication</a> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">make</a>(<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> subject, <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> predicate, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a> memory) {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordflow">if</span> ((subject == null) || (predicate == null)) {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">if</span> ((subject == null) || (predicate == null)) {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">if</span> ((subject instanceof <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication.html">Implication</a>) || (subject instanceof <a class="code" href="../../d1/d8b/classnars_1_1language_1_1Equivalence.html">Equivalence</a>) || (predicate instanceof Equivalence)) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_a96d4bf7bb99f48b6496cdb7457bc0e50.html#a96d4bf7bb99f48b6496cdb7457bc0e50">invalidStatement</a>(subject, predicate)) {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        String <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b.html#a059f44677d4580c0eef198dfba957b6b">name</a> = <a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_a7123aba1c8c566f291e2c9b9d147557d.html#a7123aba1c8c566f291e2c9b9d147557d">makeStatementName</a>(subject, <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a3df4f4f66cb2a09646f614f5766500d7.html#a3df4f4f66cb2a09646f614f5766500d7">IMPLICATION_RELATION</a>, predicate);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> t = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a63058cc52d77412e0aead8387c23aa93.html#a63058cc52d77412e0aead8387c23aa93">nameToListedTerm</a>(name);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">if</span> (t != null) {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <span class="keywordflow">return</span> (Implication) t;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">if</span> (predicate instanceof Implication) {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> oldCondition = ((<a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709.html#ab92b733902106af6deccfbbf06e63709">Implication</a>) predicate).getSubject();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            <span class="keywordflow">if</span> ((oldCondition instanceof <a class="code" href="../../d6/d98/classnars_1_1language_1_1Conjunction.html">Conjunction</a>) &amp;&amp; ((Conjunction) oldCondition).<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad637ccaf9aecf41f3961d095900f2d5e.html#ad637ccaf9aecf41f3961d095900f2d5e">containComponent</a>(subject)) {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> newCondition = Conjunction.make(subject, oldCondition, memory);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">make</a>(newCondition, ((Implication) predicate).<a class="code" href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">getPredicate</a>(), memory);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            ArrayList&lt;Term&gt; argument = <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a26cc2a0123b22a3019ca81de239c5007.html#a26cc2a0123b22a3019ca81de239c5007">argumentsToList</a>(subject, predicate);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709.html#ab92b733902106af6deccfbbf06e63709">Implication</a>(argument);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="../../da/db6/classnars_1_1language_1_1Implication_a9299dda59ee5ed836cd12c231e17ce6f.html#a9299dda59ee5ed836cd12c231e17ce6f">  102</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../da/db6/classnars_1_1language_1_1Implication_a9299dda59ee5ed836cd12c231e17ce6f.html#a9299dda59ee5ed836cd12c231e17ce6f">operator</a>() {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a3df4f4f66cb2a09646f614f5766500d7.html#a3df4f4f66cb2a09646f614f5766500d7">IMPLICATION_RELATION</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}</div>
<div class="ttc" id="classnars_1_1language_1_1Conjunction_html"><div class="ttname"><a href="../../d6/d98/classnars_1_1language_1_1Conjunction.html">nars.language.Conjunction</a></div><div class="ttdoc">Conjunction of statements. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d2f/Conjunction_8java_source.html#l00031">Conjunction.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0_html_ababe6155e2f78e769f76493317e118e0"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_ababe6155e2f78e769f76493317e118e0.html#ababe6155e2f78e769f76493317e118e0">nars.language.Statement.getPredicate</a></div><div class="ttdeci">Term getPredicate()</div><div class="ttdoc">Return the second component of the statement. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00237">Statement.java:237</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a3df4f4f66cb2a09646f614f5766500d7_html_a3df4f4f66cb2a09646f614f5766500d7"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a3df4f4f66cb2a09646f614f5766500d7.html#a3df4f4f66cb2a09646f614f5766500d7">nars.io.Symbols.IMPLICATION_RELATION</a></div><div class="ttdeci">static final String IMPLICATION_RELATION</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00076">Symbols.java:76</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f_html_a9af204cfe23c573d9987f27f8f8c7d8f"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication_a9af204cfe23c573d9987f27f8f8c7d8f.html#a9af204cfe23c573d9987f27f8f8c7d8f">nars.language.Implication.make</a></div><div class="ttdeci">static Implication make(Term subject, Term predicate, Memory memory)</div><div class="ttdoc">Try to make a new compound from two components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00067">Implication.java:67</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a26cc2a0123b22a3019ca81de239c5007_html_a26cc2a0123b22a3019ca81de239c5007"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a26cc2a0123b22a3019ca81de239c5007.html#a26cc2a0123b22a3019ca81de239c5007">nars.language.CompoundTerm.argumentsToList</a></div><div class="ttdeci">static ArrayList&lt; Term &gt; argumentsToList(Term t1, Term t2)</div><div class="ttdoc">build a component list from two terms </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00222">CompoundTerm.java:222</a></div></div>
<div class="ttc" id="namespacenars_1_1io_html"><div class="ttname"><a href="../../db/d64/namespacenars_1_1io.html">nars.io</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d26/ExperienceReader_8java_source.html#l00021">ExperienceReader.java:21</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_ad637ccaf9aecf41f3961d095900f2d5e_html_ad637ccaf9aecf41f3961d095900f2d5e"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad637ccaf9aecf41f3961d095900f2d5e.html#ad637ccaf9aecf41f3961d095900f2d5e">nars.language.CompoundTerm.containComponent</a></div><div class="ttdeci">boolean containComponent(Term t)</div><div class="ttdoc">Check whether the compound contains a certain component. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00397">CompoundTerm.java:397</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_html"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement.html">nars.language.Statement</a></div><div class="ttdoc">A statement is a compound term, consisting of a subject, a predicate, and a relation symbol in betwee...</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00033">Statement.java:33</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_html"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols.html">nars.io.Symbols</a></div><div class="ttdoc">The ASCII symbols used in I/O. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00026">Symbols.java:26</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_aee0ef6fd533b58caf22bee2a98eef67d_html_aee0ef6fd533b58caf22bee2a98eef67d"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_aee0ef6fd533b58caf22bee2a98eef67d.html#aee0ef6fd533b58caf22bee2a98eef67d">nars.language.CompoundTerm.isConstant</a></div><div class="ttdeci">boolean isConstant()</div><div class="ttdoc">check if the term contains free variable </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00318">CompoundTerm.java:318</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b_html_a059f44677d4580c0eef198dfba957b6b"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b.html#a059f44677d4580c0eef198dfba957b6b">nars.language.Term.name</a></div><div class="ttdeci">String name</div><div class="ttdoc">A Term is identified uniquely by its name, a sequence of characters in a given alphabet (ASCII or Uni...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00046">Term.java:46</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709_html_ab92b733902106af6deccfbbf06e63709"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication_ab92b733902106af6deccfbbf06e63709.html#ab92b733902106af6deccfbbf06e63709">nars.language.Implication.Implication</a></div><div class="ttdeci">Implication(ArrayList&lt; Term &gt; arg)</div><div class="ttdoc">Constructor with partial values, called by make. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00037">Implication.java:37</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_a7123aba1c8c566f291e2c9b9d147557d_html_a7123aba1c8c566f291e2c9b9d147557d"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_a7123aba1c8c566f291e2c9b9d147557d.html#a7123aba1c8c566f291e2c9b9d147557d">nars.language.Statement.makeStatementName</a></div><div class="ttdeci">static String makeStatementName(TermStruct subject, String relation, TermStruct predicate)</div><div class="ttdoc">Default method to make the nameStr of an image term from given fields. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00173">Statement.java:173</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a5e337444f74e870264191c7fbc13cd6d_html_a5e337444f74e870264191c7fbc13cd6d"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5e337444f74e870264191c7fbc13cd6d.html#a5e337444f74e870264191c7fbc13cd6d">nars.language.CompoundTerm.complexity</a></div><div class="ttdeci">short complexity</div><div class="ttdoc">syntactic complexity of the compound, the sum of those of its components plus 1 </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00041">CompoundTerm.java:41</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_a2d8bb553b90caaeb73a797087e52cb17_html_a2d8bb553b90caaeb73a797087e52cb17"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication_a2d8bb553b90caaeb73a797087e52cb17.html#a2d8bb553b90caaeb73a797087e52cb17">nars.language.Implication.clone</a></div><div class="ttdeci">Object clone()</div><div class="ttdoc">Clone an object. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00056">Implication.java:56</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_a9299dda59ee5ed836cd12c231e17ce6f_html_a9299dda59ee5ed836cd12c231e17ce6f"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication_a9299dda59ee5ed836cd12c231e17ce6f.html#a9299dda59ee5ed836cd12c231e17ce6f">nars.language.Implication.operator</a></div><div class="ttdeci">String operator()</div><div class="ttdoc">Get the operator of the term. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00102">Implication.java:102</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Statement_a96d4bf7bb99f48b6496cdb7457bc0e50_html_a96d4bf7bb99f48b6496cdb7457bc0e50"><div class="ttname"><a href="../../d1/d5e/classnars_1_1language_1_1Statement_a96d4bf7bb99f48b6496cdb7457bc0e50.html#a96d4bf7bb99f48b6496cdb7457bc0e50">nars.language.Statement.invalidStatement</a></div><div class="ttdeci">static boolean invalidStatement(Term subject, Term predicate)</div><div class="ttdoc">Check the validity of a potential Statement. </div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d44/Statement_8java_source.html#l00191">Statement.java:191</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Equivalence_html"><div class="ttname"><a href="../../d1/d8b/classnars_1_1language_1_1Equivalence.html">nars.language.Equivalence</a></div><div class="ttdoc">A Statement about an Equivalence relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/dcc/Equivalence_8java_source.html#l00031">Equivalence.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_html"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term.html">nars.language.Term</a></div><div class="ttdoc">Term is the basic component of Narsese, and the object of processing in NARS. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00040">Term.java:40</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_abdfe3e056a5b1c4ddbab550d3d80d4b4_html_abdfe3e056a5b1c4ddbab550d3d80d4b4"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication_abdfe3e056a5b1c4ddbab550d3d80d4b4.html#abdfe3e056a5b1c4ddbab550d3d80d4b4">nars.language.Implication.Implication</a></div><div class="ttdeci">Implication(String n, ArrayList&lt; Term &gt; cs, boolean con, short i)</div><div class="ttdoc">Constructor with full values, called by clone. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00048">Implication.java:48</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a4f199daa7588f86b81b0912a5e52dfe0_html_a4f199daa7588f86b81b0912a5e52dfe0"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a4f199daa7588f86b81b0912a5e52dfe0.html#a4f199daa7588f86b81b0912a5e52dfe0">nars.language.CompoundTerm.cloneList</a></div><div class="ttdeci">static ArrayList&lt; Term &gt; cloneList(ArrayList&lt; Term &gt; original)</div><div class="ttdoc">Deep clone an array list of terms. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00381">CompoundTerm.java:381</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb_html_ad340d3bb55dcfcdf237fe4ee225d3cbb"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb.html#ad340d3bb55dcfcdf237fe4ee225d3cbb">nars.language.CompoundTerm.components</a></div><div class="ttdeci">ArrayList&lt; Term &gt; components</div><div class="ttdoc">list of (direct) components </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00039">CompoundTerm.java:39</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a63058cc52d77412e0aead8387c23aa93_html_a63058cc52d77412e0aead8387c23aa93"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a63058cc52d77412e0aead8387c23aa93.html#a63058cc52d77412e0aead8387c23aa93">nars.storage.Memory.nameToListedTerm</a></div><div class="ttdeci">Term nameToListedTerm(String name)</div><div class="ttdoc">Get a Term for a given name of a Concept or Operator. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00152">Memory.java:152</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Implication_html"><div class="ttname"><a href="../../da/db6/classnars_1_1language_1_1Implication.html">nars.language.Implication</a></div><div class="ttdoc">A Statement about an Inheritance relation. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d1a/Implication_8java_source.html#l00031">Implication.java:31</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_b4d9c5ced2c21fe4bf332c675d1d2c5f.html">language</a></li><li class="navelem"><a class="el" href="../../d3/d1a/Implication_8java.html">Implication.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
